<?php
$this->breadcrumbs=array(
	'Users'=>array('index'),
	$model->ID,
);

?>

<h1>View User #<?php echo $model->ID; ?></h1>
<?php 
	$this->widget('zii.widgets.CMenu',array(
	'items'=>array(	
		array('label'=>'Create User', 'url'=>array('create')),
		array('label'=>'Update User', 'url'=>array('update', 'id'=>$model->ID)),
		array('label'=>'Delete User', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->ID),'confirm'=>'Are you sure you want to delete this item?')),
		array('label'=>'Manage User', 'url'=>array('index')),
		)
	));
?>
<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'ID',
		'username',
		array(
		'name'=>'active',
		'value'=>$model->getYesNo($model->active)
		),			
		'reset',
		array(
		'name'=>'createddate',
		'value'=>date("d-m-Y G:i",$model->createddate)
		),
		array(
		'name'=>'modifieddate',
		'value'=>date("d-m-Y G:i",$model->modifieddate)
		),
		array(
		'name'=>'status',
		'value'=>$model->getUserStatus($model->status)
		),	
	),
)); ?>
